package com.lujianfei.redpacketstat

import android.app.Application
import com.lujianfei.redpacketstat.di.appModule
import com.lujianfei.redpacketstat.di.viewModelModule
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin
import kotlin.properties.Delegates

class App : Application(){

    companion object {
        var instance: App by Delegates.notNull()
    }

    var adminMode = false

    override fun onCreate() {
        super.onCreate()
        instance = this
        startKoin {
            androidContext(this@App)
            modules(appModule)
        }
    }
}